package et.six.eta.View.Sideslip;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import et.six.eta.MainActivity;
import et.six.eta.R;
import et.six.eta.View.LoginActivity;
import et.six.eta.View.SignInActivity;

public class linear_message_view extends AppCompatActivity {

    String name;
    String phone;
    String pwd;
    TextView linear_message_name;
    TextView linear_message_pwd;

    Button butt_linear_message;


    @Override
    public void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_linear_message);
        linear_message_name=findViewById(R.id.linear_message_name);
        linear_message_pwd=findViewById(R.id.linear_message_pwd);
        butt_linear_message=findViewById(R.id.butt_linear_message);
     if(LoginActivity.static_pwd==null){
         linear_message_pwd.setText(SignInActivity.static_pwd);
         linear_message_name.setText(SignInActivity.static_name);

     }else {
        linear_message_pwd.setText(LoginActivity.static_pwd);
        linear_message_name.setText(LoginActivity.static_name);
     }

        butt_linear_message.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it = new Intent(linear_message_view.this, MainActivity.class);
                startActivity(it);
                finish();
            }
        });
        }
}

